package com.skyaims.biz.processor;

import com.skyaims.biz.message.ext.HeartBeatMessage;
import net.skyaims.aiolia.chat.litp.LitpSession;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Created by wujianing on 14-3-9.
 */
public class HeartBeatProcessor {

    public static final Logger log = LoggerFactory.getLogger(HeartBeatProcessor.class);

    public static void process(HeartBeatMessage message) {
        LitpSession session = (LitpSession) message.getAttach();
        String token = session.getToken();
        session.setAttribute("TIMESTAMP", message.getTimestamp());
    }

}
